from dingtalkchatbot.chatbot import DingtalkChatbot

from django.conf import settings


def send(message, at_mobiles=[]):
    webhook = settings.DINGTALK_WEB_HOOK
    secret = settings.DINGTALK_SECRET
    # xiaoding = DingtalkChatbot(webhook)
    # v1.5以上
    xiaoding = DingtalkChatbot(webhook, secret=secret)
    
    xiaoding.send_text(msg=('面试通知: %s' % message), at_mobiles=at_mobiles)




